package dsa;

import java.util.Scanner;

public class DengLu {
	static boolean ll = false;
	public static void denglu(){
		System.out.println("[会员系统>>登录]");
		if (ZhuCe.pd == true) {
			System.out.println("请输入用户名：");
			Scanner fd = new Scanner(System.in);
			String name = fd.nextLine();
			
			System.out.println("请输入密码：");
			Scanner aaf = new Scanner(System.in);
			String pwd = aaf.nextLine();
			
			if (ZhuCe.user_name.equals(name) && ZhuCe.password.equals(pwd)) {
				System.out.println("************************");
				System.out.println("欢迎" + name + "成功登录会员系统！");
				System.out.println("************************");
				System.out.println("你的会员卡号是：" + ZhuCe.kahao);
				ll = true;
				ChouJiang.choujian();
			} else {
				System.out.println("账号密码错误，登录失败！");
			}
		} else {
			System.out.println("请先注册在登录！");
			String asc = Sj.sf();
			if ("n".equals(asc)) {
				System.out.println("***************************");
				System.out.println("系统已退出，谢谢使用！");
			} else if ("y".equals(asc)) {
				ZhuCe.zc();
			}
		}
		
		
	}
}
